import commonRequest from '@/request/commonRequest'
import request from '@/request/request'

/**
 * 获取微信权限验证配置
 * @param {JSON} params
 */
function getjsconfig(query = {}) {
  const reqBody = request.getjsconfig(query)
  return new Promise(function(resolve, reject) {
    commonRequest.gatewayRequest(reqBody).then(res => {
      res = JSON.parse(res)
      resolve(res)
    }).catch(err => {
      reject(err)
    })
  })
}

export default {
  getjsconfig
}
